Skip to content

prepare target for configuration changes to avoid conflict and/or race condition - #398

Merged
harp-intel merged 1 commit into
mainfrom
configsetconflict
Jun 27, 2025
Merged

prepare target for configuration changes to avoid conflict and/or race condition#398
harp-intel merged 1 commit into
mainfrom
configsetconflict

Conversation

@harp-intel

Copy link
Copy Markdown
Contributor

This pull request introduces a new function to prepare targets for configuration changes and modifies dependencies and kernel module requirements across various configuration scripts. The changes aim to streamline the setup process and reduce potential conflicts during parallel execution of scripts.

New Functionality:

  • cmd/config/config.go: Added the prepareTarget function to handle pre-configuration setup, including loading the msr kernel module and preparing dependencies like wrmsr and rdmsr. This ensures that subsequent scripts can run in parallel without conflicts.

Dependency Adjustments:

  • cmd/config/set.go: Commented out Depends and Lkms fields for multiple scripts (e.g., wrmsr, rdmsr) across functions like setLlcSize, setCoreFrequency, setUncoreFrequency, setTDP, setEPB, setEPP, setPrefetcher, and setC1Demotion. These changes indicate that the dependencies are no longer explicitly required in the script definitions. [1] [2] [3] [4] [5] [6] [7] [8]

Additional Dependency Inclusion:

  • cmd/config/set.go: Updated the Depends field in the setELC function to include "pcm-tpmi" alongside "bhs-power-mode.sh", reflecting new requirements for this script.

…e condition

Signed-off-by: Harper, Jason M <jason.m.harper@intel.com>
@harp-intel harp-intel linked an issue Jun 27, 2025 that may be closed by this pull request
@harp-intel
harp-intel requested a review from Copilot June 27, 2025 15:24

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces a preparatory function to ready targets for configuration changes and adjusts dependency settings in various configuration scripts to avoid conflicts when running in parallel. Key changes include:

  • Adding the prepareTarget function in config.go to run a pre-configuration script.
  • Commenting out dependency declarations (Depends and Lkms) in several set functions.
  • Updating the setELC function to include an additional dependency ("pcm-tpmi").

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
cmd/config/set.go Commented out dependency fields in various set functions and updated setELC dependencies.
cmd/config/config.go Introduced prepareTarget to prepare the target before running configuration scripts.

Comment thread cmd/config/config.go
Comment thread cmd/config/set.go
@harp-intel
harp-intel merged commit ae046a4 into main Jun 27, 2025
4 checks passed
@harp-intel
harp-intel deleted the configsetconflict branch June 27, 2025 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

config set epp and epb at same time may fail

2 participants